using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._GeoAnalyticsDesktopTools._ManageData
{
    /// <summary>
    /// <para>Clip Layer</para>
    /// <para>Extracts input features from within specified polygons.</para>
    /// <para>从指定面内提取输入要素。</para>
    /// </summary>    
    [DisplayName("Clip Layer")]
    public class ClipLayer : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ClipLayer()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_input_layer">
        /// <para>Input Layer</para>
        /// <para>The dataset containing the point, line, or polygon features to be clipped.</para>
        /// <para>包含要裁剪的点、线或面要素的数据集。</para>
        /// </param>
        /// <param name="_clip_layer">
        /// <para>Clip  Layer</para>
        /// <para>The dataset containing the polygon features used to clip the input features.</para>
        /// <para>包含用于裁剪输入要素的面要素的数据集。</para>
        /// </param>
        /// <param name="_out_feature_class">
        /// <para>Output Feature Class</para>
        /// <para>The output feature class with clipped features.</para>
        /// <para>具有裁剪要素的输出要素类。</para>
        /// </param>
        public ClipLayer(object _input_layer, object _clip_layer, object _out_feature_class)
        {
            this._input_layer = _input_layer;
            this._clip_layer = _clip_layer;
            this._out_feature_class = _out_feature_class;
        }
        public override string ToolboxName => "GeoAnalytics Desktop Tools";

        public override string ToolName => "Clip Layer";

        public override string CallName => "gapro.ClipLayer";

        public override List<string> AcceptEnvironments => ["extent", "outputCoordinateSystem", "parallelProcessingFactor", "workspace"];

        public override object[] ParameterInfo => [_input_layer, _clip_layer, _out_feature_class];

        /// <summary>
        /// <para>Input Layer</para>
        /// <para>The dataset containing the point, line, or polygon features to be clipped.</para>
        /// <para>包含要裁剪的点、线或面要素的数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _input_layer { get; set; }


        /// <summary>
        /// <para>Clip  Layer</para>
        /// <para>The dataset containing the polygon features used to clip the input features.</para>
        /// <para>包含用于裁剪输入要素的面要素的数据集。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Clip  Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _clip_layer { get; set; }


        /// <summary>
        /// <para>Output Feature Class</para>
        /// <para>The output feature class with clipped features.</para>
        /// <para>具有裁剪要素的输出要素类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Feature Class")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_feature_class { get; set; }


        public ClipLayer SetEnv(object extent = null, object outputCoordinateSystem = null, object parallelProcessingFactor = null, object workspace = null)
        {
            base.SetEnv(extent: extent, outputCoordinateSystem: outputCoordinateSystem, parallelProcessingFactor: parallelProcessingFactor, workspace: workspace);
            return this;
        }

    }

}